package com.gem.shop.service;

import com.gem.shop.entity.Commodity;
import com.gem.shop.util.PageBean;

import java.util.List;

/**
 * @author zhang
 * @date 2020/9/17 19:24
 */
public interface CommodityService {

    PageBean<Commodity> findCommoditysByPagesAndName(int pageNow, int pageSize, String name);

    PageBean<Commodity> findCommoditysByPagesAndType(int pageNow,int pageSize,String type);

    List<String> findAllType();

    Commodity findCommodityById(int id);

    List<Commodity> findCommoditiesByNameAndType(String name,String type);
}
